<!--账户管理---渠道信息-->
<template>
  <div>
    <div v-if="channelType" style="display: flex;justify-content: space-between;">
      <div style="width: 50%">
        <detail-list title="渠道信息" :col="1" class="detail-layout">
          <detail-list-item term="企业名称：">{{ detailList.entName }}</detail-list-item>
          <detail-list-item term="社会统一信用代码：">{{ detailList.entCreditCode }}</detail-list-item>
          <!--      <detail-list-item term="企业类型">{{ detailList.lisenceIncorpDate }}</detail-list-item>-->
          <detail-list-item term="经营范围：">{{ detailList.entBizNature }}</detail-list-item>
<!--          <detail-list-item term="注册资本：">{{ detailList.entRegistCapital }}</detail-list-item>-->
          <detail-list-item term="成立日期：">{{ detailList.entIncorpDate }}</detail-list-item>
          <detail-list-item term="注册地址：">{{ detailList.entAddress }}</detail-list-item>
          <detail-list-item term="法人信息：">{{ detailList.entLegal }}</detail-list-item>
<!--          <detail-list-item term="经营场景：">{{ detailList.entName }}</detail-list-item>-->
        </detail-list>
      </div>
      <div style="width: 50%">
        <div class="detail-img-style" v-if="detailList.entBizLicenseUrl">
          <img class="img-show" :src="detailList.entBizLicenseUrl" :preview="0" />
        </div>
      </div>
    </div>

    <div v-if="!channelType">
      <detail-list title="个人信息" :col="1" class="detail-layout">
        <detail-list-item term="负责人姓名：">{{ detailList.manageName }}</detail-list-item>
        <detail-list-item term="身份证：">
          <div style="display: flex;">
            <div class="detail-img-style" v-if="detailList.manageCardFrontUrl">
              <img class="img-show" :src="detailList.manageCardFrontUrl" :preview="0" />
            </div>
            <div class="detail-img-style" v-if="detailList.manageCardBackUrl">
              <img class="img-show" :src="detailList.manageCardBackUrl" :preview="0" />
            </div>
          </div>
        </detail-list-item>
      </detail-list>
    </div>

  </div>
</template>

<script>
import DetailList from '@/components/tools/DetailList'
const DetailListItem = DetailList.Item
export default {
  name: "channelMessage",
  components:{
    DetailList,
    DetailListItem
  },
  props: ['detailList','channelType'],
  data(){
    return{
      //channelType: true,   //渠道类型 1-企业渠道 2-个人渠道 3-直客
    }
  },
}
</script>

<style scoped lang="less">

.detail-img-style{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  img{
    max-width: 400px;
    max-height: 400px;
  }
}

</style>
